<template>
	<view class="container">
		<u-textarea v-model="value1" placeholder="请输入" :height="210" @blur="blur" ></u-textarea>
	</view>
</template>

<script setup>
	import {
		ref,
	} from 'vue'
	const value1 = ref('')
	const emits = defineEmits(['answer'])
	const props = defineProps({
		option: {
			type: Object
		},
		k: {
			type: Number
		}
	})
	const blur = ()=>{
		emits('answer',{'index':props.k,'question_id':props.option.id,'type':props.option.type,'score':props.option.score,'answer':value1.value})
	}
</script>

<style lang="scss" scoped>
	.container{
		.u-textarea{
			width: 90%;
			margin: 60rpx auto;
		}
	}
</style>